package or;

public class T2579 {
    public long coloredCells(int n) {
        long r=n;
        return r*r+(r-1)*(r-1);
    }
}
